package com.boco.modules.fdoc.web.sigserverpack;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.boco.common.persistence.Page;
import com.boco.common.web.ServletController;
import com.boco.modules.fdoc.model.ServicepackDetailsEntity;
import com.boco.modules.fdoc.model.SigServicepackEntity;
import com.boco.modules.fdoc.service.SigServicepackService;
import com.boco.modules.fdoc.vo.ServicepackDetailsVo;


@Controller
@RequestMapping(value = "/sigserverpack")
public class QrySvsPackDetailsCtr  extends ServletController{
	@Resource
	SigServicepackService sigServicepackService;
	
	@RequestMapping(value="/getSvsPackDetailsList")
	public String getSvsPackList(ServicepackDetailsVo vo,HttpServletRequest request, HttpServletResponse response, Model model){
		Page<ServicepackDetailsEntity> page=new Page<ServicepackDetailsEntity>(request,response);
		int sigId=vo.getSigSvsPackId();
		System.out.println(sigId);
		ServicepackDetailsEntity entity=new ServicepackDetailsEntity();
		entity.setSigId(sigId);
		page = sigServicepackService.getSvsPackDtlLst(page, entity);
		request.setAttribute("page", page);
		return "/sigsvspack/sigsvspackmgmtview";
	}
		
	}